package com.ts.login.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ts.common.dto.Sms;
import com.ts.login.dto.LoginDto;
import com.ts.login.dto.PhonePayload;
import com.ts.login.entity.User;
import me.zhyd.oauth.model.AuthUser;

/**
 * @author Zhendong Song
 * @date 2023/7/12
 * @description
 */
public interface LoginService extends IService<User> {
    String loginByPhone(LoginDto<PhonePayload> dto);

    String loginByBaiDu(AuthUser baiduUser);

    User regisiter(String phone);


    User regisiterByBaidu(AuthUser authUser);

    void codeSend(Sms sms);
}
